import request from '@/utils/request'

export function queryList(data) {
  return request({
    url: `/md/customer/queryList`,
    method: 'post',
    data: data
  })
}

export function add(data) {
  return request({
    url: `/md/customer/add`,
    method: 'post',
    data: data
  })
}

export function delet(data) {
  return request({
    url: `/md/customer/delete`,
    method: 'post',
    data: data
  })
}

export function getById(data) {
  return request({
    url: `/md/customer/getById/${data}`,
    method: 'get'
  })
}

export function update(data) {
  return request({
    url: `/md/customer/update`,
    method: 'post',
    data: data
  })
}
